﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using CollectData.DAL.ModelConfigurations;
using CollectData.DAL.Model;

namespace CollectData.DAL
{
    public class CollectDataContext : DbContext
    {
        public DbSet<Model.Category> Categories { get; set; }

        public DbSet<Model.TrackItem> TrackItems { get; set; }
        

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add<Category>(new CategoryConfiguration());
        }
    }

  
}
